package com.hunan.api.catv.entity.po;

import java.io.Serializable;

/**
 * @author
 */
public class SystemAuth implements Serializable {
    /**
     * 权限ID
     */
    private Integer sysAuthId;

    /**
     * 权限名称
     */
    private String sysAuthName;

    /**
     * 权限地址
     */
    private String sysAuthAction;

    /**
     * 上层权限
     */
    private Integer sysAuthPid;

    /**
     * 0无效 1有效
     */
    private Integer state;

    private Integer level;

    private static final long serialVersionUID = 1L;

    private Integer sysRoleId;

    private String icon;


    private Integer hidden;

    /**
     * 0 没有下边框 1有下边框
     */
    private Integer border;

    public Integer getBorder() {
        return border;
    }

    public void setBorder(Integer border) {
        this.border = border;
    }

    public Integer getHidden() {
        return hidden;
    }

    public void setHidden(Integer hidden) {
        this.hidden = hidden;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getSysRoleId() {
        return sysRoleId;
    }

    public void setSysRoleId(Integer sysRoleId) {
        this.sysRoleId = sysRoleId;
    }

    public Integer getSysAuthId() {
        return sysAuthId;
    }

    public void setSysAuthId(Integer sysAuthId) {
        this.sysAuthId = sysAuthId;
    }

    public String getSysAuthName() {
        return sysAuthName;
    }

    public void setSysAuthName(String sysAuthName) {
        this.sysAuthName = sysAuthName;
    }

    public String getSysAuthAction() {
        return sysAuthAction;
    }

    public void setSysAuthAction(String sysAuthAction) {
        this.sysAuthAction = sysAuthAction;
    }

    public Integer getSysAuthPid() {
        return sysAuthPid;
    }

    public void setSysAuthPid(Integer sysAuthPid) {
        this.sysAuthPid = sysAuthPid;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SystemAuth other = (SystemAuth) that;
        return (this.getSysAuthId() == null ? other.getSysAuthId() == null : this.getSysAuthId().equals(other.getSysAuthId()))
                && (this.getSysAuthName() == null ? other.getSysAuthName() == null : this.getSysAuthName().equals(other.getSysAuthName()))
                && (this.getSysAuthAction() == null ? other.getSysAuthAction() == null : this.getSysAuthAction().equals(other.getSysAuthAction()))
                && (this.getSysAuthPid() == null ? other.getSysAuthPid() == null : this.getSysAuthPid().equals(other.getSysAuthPid()))
                && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
                && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSysAuthId() == null) ? 0 : getSysAuthId().hashCode());
        result = prime * result + ((getSysAuthName() == null) ? 0 : getSysAuthName().hashCode());
        result = prime * result + ((getSysAuthAction() == null) ? 0 : getSysAuthAction().hashCode());
        result = prime * result + ((getSysAuthPid() == null) ? 0 : getSysAuthPid().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sysAuthId=").append(sysAuthId);
        sb.append(", sysAuthName=").append(sysAuthName);
        sb.append(", sysAuthAction=").append(sysAuthAction);
        sb.append(", sysAuthPid=").append(sysAuthPid);
        sb.append(", state=").append(state);
        sb.append(", level=").append(level);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}